package com.ph.website.home.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ph.website.home.entity.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberMapper extends BaseMapper<Member> {

    /**根据用户名查找*/
    Member getByUsername(@Param("username")String username);

    /**后台获取用户列表*/
    List<Member> list(@Param("start")Integer start,
                      @Param("num")Integer num);

    /**后台获取用户总数*/
    int listCount();
}
